#pragma once
#include"event/Object.h"
#include"jsonCpp/json.h"
#include<map>
#include<string>

typedef void(Object::* GmExcuteFunc)(Json::Value&);

class GMController:public Object
{
public:
	GMController(Object* master);
	~GMController();

	void initFunc();

	void registerExcuteFunc(int cmd, GmExcuteFunc func);
	void c2sGMExcute(Json::Value& mesage);
	void excuteMail(Json::Value& message);
private:
	Object* m_master;
};

